home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / code / r3tbase.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  4.3 KB  |  144 lines

  1.  
  2. // JavaScript wrapper for r3tbase.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_TOOLBASE_H = 1;
  7. include("oops/r3root.js")
  8.  
  9.  
  10. var R3CLID_TOOLBASE = 336;
  11.  
  12.  
  13.  
  14.  
  15. // Description: This method is sent to the tool object when the user has played with
  16. //      the selected object. The tool can check out the selected objects and decide whether or
  17. //      not they are valid.
  18. // Virtual method
  19. // Returns: Boolean, TRUE enables 'apply' button so that the tool can be applied.
  20. // p1: Integer, number of selected objects
  21. // p3: r3List, list of selected objects    
  22.  
  23. R3TBASEM_UPDATESELECTED = 336002;
  24.  
  25. function mR3TBASEM_UPDATESELECTED(p1, p3) {
  26.   return   DoA2(this.r3obj, 336002, p1, R3TID_INTEGER, 0, p3, R3TID_LIST, 0);
  27. }
  28.  
  29. // Description: This method is sent to the tool when the user has clicked the 'Apply'.
  30. // Virtual method
  31. // p3: Tag[], R3TBASEA_Layer - current project R3TBASEA_PrimLayer - geometric primitives R3TBASEA_MaterialLayer - materials R3TBASEA_ImageLayer - images    
  32.  
  33. R3TBASEM_APPLY = 336003;
  34.  
  35. function mR3TBASEM_APPLY(p3) {
  36.   Do(this.r3obj, 336003, p3, R3TID_TAG, R3TNF_ARRAY);
  37. }
  38.  
  39. // Description: This method is sent to the tool when the tool window is instanced. The
  40. //      tool creates necessary gadgets here. Gadgets must be created inside one geometry manager, which is
  41. //      later fetched using R3TBASEA_Controls tag.
  42. // Virtual method
  43. // p3: Tag[], R3TBASEA_Window    
  44.  
  45. R3TBASEM_CREATECONTROLS = 336004;
  46.  
  47. function mR3TBASEM_CREATECONTROLS(p3) {
  48.   Do(this.r3obj, 336004, p3, R3TID_TAG, R3TNF_ARRAY);
  49. }
  50.  
  51.  
  52.  
  53.  
  54. R3TBASEA_PrimLayer = 336500;
  55. function SetR3TBASEA_PrimLayer(value) {
  56.   R3Set(this.r3obj, R3TBASEA_PrimLayer, value, R3TID_OBJECT, 0); 
  57. }
  58.  
  59. function GetR3TBASEA_PrimLayer() {
  60.   return R3ToJS(R3Get(this.r3obj, R3TBASEA_PrimLayer, R3TID_OBJECT, 0)); 
  61. }
  62.  
  63. R3TBASEA_Layer = 336501;
  64. function SetR3TBASEA_Layer(value) {
  65.   R3Set(this.r3obj, R3TBASEA_Layer, value, R3TID_OBJECT, 0); 
  66. }
  67.  
  68. function GetR3TBASEA_Layer() {
  69.   return R3ToJS(R3Get(this.r3obj, R3TBASEA_Layer, R3TID_OBJECT, 0)); 
  70. }
  71.  
  72. var R3TBASEA_Window = 336502; // Object
  73. R3TBASEA_Tool = 336503;
  74. function GetR3TBASEA_Tool() {
  75.   return R3Get(this.r3obj, R3TBASEA_Tool, R3TID_INTEGER, R3TNF_ARRAY); 
  76. }
  77.  
  78. R3TBASEA_Controls = 336504;
  79. function GetR3TBASEA_Controls() {
  80.   return R3ToJS(R3Get(this.r3obj, R3TBASEA_Controls, R3TID_OBJECT, 0)); 
  81. }
  82.  
  83. R3TBASEA_ImageLayer = 336505;
  84. function SetR3TBASEA_ImageLayer(value) {
  85.   R3Set(this.r3obj, R3TBASEA_ImageLayer, value, R3TID_OBJECT, 0); 
  86. }
  87.  
  88. function GetR3TBASEA_ImageLayer() {
  89.   return R3ToJS(R3Get(this.r3obj, R3TBASEA_ImageLayer, R3TID_OBJECT, 0)); 
  90. }
  91.  
  92. R3TBASEA_UnitConverter = 336506;
  93. function SetR3TBASEA_UnitConverter(value) {
  94.   R3Set(this.r3obj, R3TBASEA_UnitConverter, value, R3TID_OBJECT, 0); 
  95. }
  96.  
  97. R3TBASEA_ProgressIndicator = 336507;
  98. function SetR3TBASEA_ProgressIndicator(value) {
  99.   R3Set(this.r3obj, R3TBASEA_ProgressIndicator, value, R3TID_OBJECT, 0); 
  100. }
  101.  
  102. function GetR3TBASEA_ProgressIndicator() {
  103.   return R3ToJS(R3Get(this.r3obj, R3TBASEA_ProgressIndicator, R3TID_OBJECT, 0)); 
  104. }
  105.  
  106. R3TBASEA_MaterialLayer = 336508;
  107. function SetR3TBASEA_MaterialLayer(value) {
  108.   R3Set(this.r3obj, R3TBASEA_MaterialLayer, value, R3TID_OBJECT, 0); 
  109. }
  110.  
  111. function GetR3TBASEA_MaterialLayer() {
  112.   return R3ToJS(R3Get(this.r3obj, R3TBASEA_MaterialLayer, R3TID_OBJECT, 0)); 
  113. }
  114.  
  115.  
  116.  
  117. function r3Toolbase () { 
  118.    this.base = r3God;
  119.    if(arguments.length) {
  120.       this.base(R3CLID_TOOLBASE, arguments);
  121.    }
  122.    // Methods
  123.    this.UPDATESELECTED=mR3TBASEM_UPDATESELECTED;
  124.    this.APPLY=mR3TBASEM_APPLY;
  125.    this.CREATECONTROLS=mR3TBASEM_CREATECONTROLS;
  126.  
  127.    // Attributes
  128.    this.GetPrimLayer=GetR3TBASEA_PrimLayer;
  129.    this.SetPrimLayer=SetR3TBASEA_PrimLayer;
  130.    this.GetLayer=GetR3TBASEA_Layer;
  131.    this.SetLayer=SetR3TBASEA_Layer;
  132.    this.GetTool=GetR3TBASEA_Tool;
  133.    this.GetControls=GetR3TBASEA_Controls;
  134.    this.GetImageLayer=GetR3TBASEA_ImageLayer;
  135.    this.SetImageLayer=SetR3TBASEA_ImageLayer;
  136.    this.SetUnitConverter=SetR3TBASEA_UnitConverter;
  137.    this.GetProgressIndicator=GetR3TBASEA_ProgressIndicator;
  138.    this.SetProgressIndicator=SetR3TBASEA_ProgressIndicator;
  139.    this.GetMaterialLayer=GetR3TBASEA_MaterialLayer;
  140.    this.SetMaterialLayer=SetR3TBASEA_MaterialLayer;
  141. }
  142.  
  143. r3Toolbase.prototype=new r3Root;
  144. // r3tbase.h_H